﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using InformationSystem.BLL.Core.Model;
using System.Data;

namespace InformationSystem.BLL.Core.Dao
{
    public interface IUserDao
    {
        LoginUser Login(string userid,string stu, string loginpwd);
        void LogOut(LoginUser user);
        void UpdateLoginInfo(LoginUser user, SysEnvironment envir);
        bool ChangeSysUserPassword(string userid, string oldpwd, string newpwd);
        bool ChangeStudentPassword(LoginUser user, string oldpwd, string newpwd);
        List<LoginUser> GetSysUser();
        bool UpdateSysUserInfo(LoginUser user);
        bool CreateSysUserInfo(LoginUser user);
        bool DeleteSysUserByID(string userID);
        DataTable GetUserContact();
        bool CheckUserExisted(string userid);

        IList<string> GetCollegeAssistant(LoginUser user);
        int GetAllStudentCount();
        int GetStudentCountInGrade(LoginUser user);
        int GetAllAssistantCount();

        IList<SearchResult> GetUserContactWithFilter(string filter);
    }
}
